package cn.exrick.xboot.securityAdvisor.controllerImpl

import cn.exrick.xboot.base.entity.SecurityAdvisorPublish
import cn.exrick.xboot.base.service.ISecurityAdvisorPublishService
import cn.exrick.xboot.base.vo.SecurityAdvisorPublishVo
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.securityAdvisor.controller.ISecurityAdvisorController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class SecurityAdvisorPublishController : ISecurityAdvisorController.SecurityAdvisorPublish{

    @Autowired
    private val iSecurityAdvisorPublishService: ISecurityAdvisorPublishService? = null

    override fun createOrUpdateSecurityAdvisorPublish(securityAdvisorPublish: SecurityAdvisorPublish): Result<Any?>? {

        return iSecurityAdvisorPublishService!!.createOrUpdateSecurityAdvisorPublish(securityAdvisorPublish)
    }

    override fun getSecurityAdvisorPublishDetail(id: String?): Result<SecurityAdvisorPublishVo?>? {

        return iSecurityAdvisorPublishService!!.getSecurityAdvisorPublishDetail(id)
    }

    override fun getSecurityAdvisorPublishList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iSecurityAdvisorPublishService!!.getSecurityAdvisorPublishList(pageVo)
    }
}